#ifndef SERVEUR
#define SERVEUR
#include <SFML/Network.hpp>
#include "Raquette.h"
#include "Balle.h"
#include "Client.h"

using namespace sf;

class Serveur{
    private:
        int score;
        IpAddress Address;
        Raquette *raquetteServeur;
        Raquette *raquetteClient;
        Balle *balle;
        Font font;


    public:
        Serveur();
        void increaseScore();
        void showIPs();
        Balle* getBalle();
        Raquette* getRaquetteClient();
        Raquette* getRaquetteServeur();
        Text getScoreText();
        void setScore(int i);
        int getScore();

        void sendCoordRaquette(bool serveur, TcpSocket &socket);
        void sendCoordBalle(Balle* balle, TcpSocket &socket);
        void sendScore(Serveur* serveur, Client* client, TcpSocket &socket);

};
#endif
